require('normalize.css/normalize.css');
require('styles/App.scss');

import React, {Component} from 'react';

class ImgFigure extends Component {
  render() {
    return (
      <figure>
        <img src={this.props.data.imgUrl} alt={this.props.data.title}></img>
        <figcaption>
          <h2>{this.props.data.desc}</h2>
        </figcaption>
      </figure>
    );
  }
}

export default ImgFigure;
